import os

import pytest
pytest_args = [
    "-vs",
    "--alluredir","./result",
    "--clean-alluredir",
    "--reruns=2"
]

pytest.main(pytest_args)
os.system("allure generate ./result -o ./report --clean")